package vashion.azeroth.core.manager.personal;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.dao.PersonalFriendDao;
import vashion.azeroth.core.personal.pojo.PersonalFriend;
import vashion.azeroth.core.personal.pojo.PersonalMember;
import vashion.azeroth.core.result.ApiResult;

@Service
public class PersonalFriendManager extends BaseManagerImpl<PersonalFriend> {

    @Autowired
    private PersonalFriendDao personalFriendDao;
    
	
	@Override
	public BaseDao<PersonalFriend> getDao() {
		return personalFriendDao;
	}


	public ArrayList<PersonalFriend> getFirstLevelFriends(PersonalMember member) {
		return personalFriendDao.getFirstLevelFriends(member);
	}


	public int findCntForFirLevelFridends(PersonalMember member) {
		return personalFriendDao.findCntForFirLevelFridends(member);
	}


	public ArrayList<PersonalFriend> getSecLevelFriends1(PersonalMember member) {
		return personalFriendDao.getSecLevelFriends1(member);
	}


	public ArrayList<PersonalFriend> getSecLevelFriends2(PersonalMember member) {
		return personalFriendDao.getSecLevelFriends2(member);
	}


	public ApiResult<PersonalMember> getHigher(PersonalMember member) {
		return personalFriendDao.getHigher(member);
	}


}
